public class MethodDemo05 {
    public static void main(String[] args) {
        boolean result = isDoubleNum(10);
        if (result) {
            System.out.println("偶数");
        } else {
            System.out.println("奇数");
        }
        System.out.println(result ? "偶数" : "奇数");

    }

    /**
     * @param num 数字
     * @return true or false
     */
    public static boolean isDoubleNum(int num) {
        if (num % 2 == 0) {
            return true;
        } else {
            return false;
        }
    }


}
